home *** CD-ROM | disk | FTP | other *** search
- Path: www.rpa.net!news
- From: Fred Mellender <fredm@rpa.net>
- Newsgroups: comp.lang.c++
- Subject: stl difficulties when target is Win 3.x
- Date: Tue, 09 Apr 1996 09:05:07 -0400
- Organization: Rochester Public Access, Inc.
- Message-ID: <316A6083.5550@rpa.net>
- NNTP-Posting-Host: pm1-ip43.rpa.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (Win95; I)
- CC: moore@tdl.com
-
- Hi,
- It would seem that BC 5.0 has difficulty compiling the stl header
- for "vector", when the target is Win 3.x, but not when target is
- W32, as Mr. Moore has discovered. I am running BC 5.0 under W95.
- The following is a reply to his email/news posting on this subject:
- --
-
- Hello Mr. Moore:
-
- Well the 16bit compiler is a completely different beast from the
- 32bit one. Here are the parameters I used, via "New Target" screen:
- Application Type: Application (.exe)
- Platform: Windows 3.x {16]
- Target Model: Large
- Frameworks: OWL
- Libraries: Dynamic
-
- Initial Notes: .cpp Node (only)
-
- The program:
-
- #include <vector>
- using namespace std;
-
- vector <int> foo;
- ---
-
- I got numerous warnings: "Conversion may lose significant digits".
- And, I too got the vexing:
- "Access violation occurred at 0x0163a8b3: Attempt to access
- 0x42413938"
- So, we can conclude it is not a problem with your installation.
-
- Under the "medium" model, the warnings go away, but the access
- violation persists.
-
- I recommend you send a bug report to Borland, if you have the
- patience.
-
- Regards,
-
-
-
- Martin Moore wrote:
-
- > But, I am surprised this problem with the STL library
- > isn't happening to other people. I know my project was defined as a
- > WIN 3.1 target..not a WIN32 target. That might be something you could
- > try to see if it occurs.
- >
-